<?php $this->load->module('mobile/index/header', $common);?>

<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/dialog.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/line.css" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/mobilecommon.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/slider.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/dialog.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/flight.css" />
    <div class="content">
        <section id="flightcitylistbox" class="city_box">
        <div class="citybox inlandcity" style="display: block;">
        <ul id="city_list">
        <li id="inlandhotcity" class="main-item hotcitys cityli">
            <div class="city-group-title">热门城市</div>
            <ul class="sub-city-box" style="display:block">
                <li style="display:inline;" >北京</li>
                <li style="display:inline;" >上海</li>
                <li style="display:inline;" >广州</li>
                <li style="display:inline;" >深圳</li>
                <li style="display:inline;" >成都</li>
                <li style="display:inline;" >杭州</li>
                <li style="display:inline;" >武汉</li>
                <li style="display:inline;" >西安</li>
                <li style="display:inline;" >重庆</li>
                <li style="display:inline;" >青岛</li>
                <li style="display:inline;" >长沙</li>
                <li style="display:inline;" >南京</li>
                <li style="display:inline;" >厦门</li>
                <li style="display:inline;" >昆明</li>
                <li style="display:inline;" >大连</li>
                <li style="display:inline;" >天津</li>
                <li style="display:inline;" >郑州</li>
                <li style="display:inline;" >三亚</li>
                <li style="display:inline;" >济南</li>
                <li style="display:inline;" >福州</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="A" class="city-group-title">A</div>
            <ul class="sub-city-box">
                <li class="city-item">阿克苏</li>
                <li class="city-item">鞍山</li>
                <li class="city-item">阿勒泰</li>
                <li class="city-item">安顺</li>
                <li class="city-item">阿尔山</li>
                <li class="city-item">阿拉善左旗</li>
                <li class="city-item">阿里</li>
                <li class="city-item">阿拉善右旗</li>
                <li class="city-item">安庆</li>
                <li class="city-item">安康</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="B" class="city-group-title">B</div>
            <ul class="sub-city-box">
                <li class="city-item">北京</li>
                <li class="city-item">包头</li>
                <li class="city-item">北海</li>
                <li class="city-item">毕节</li>
                <li class="city-item">巴彦淖尔</li>
                <li class="city-item">保山</li>
                <li class="city-item">博乐</li>
                <li class="city-item">百色</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="C" class="city-group-title">C</div>
            <ul class="sub-city-box">
                <li class="city-item">成都</li>
                <li class="city-item">重庆</li>
                <li class="city-item">长沙</li>
                <li class="city-item">长春</li>
                <li class="city-item">常州</li>
                <li class="city-item">赤峰</li>
                <li class="city-item">长治</li>
                <li class="city-item">长白山</li>
                <li class="city-item">常德</li>
                <li class="city-item">池州</li>
                <li class="city-item">朝阳</li>
                <li class="city-item">昌都</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="D" class="city-group-title">D</div>
            <ul class="sub-city-box">
                <li class="city-item">大连</li>
                <li class="city-item">大庆</li>
                <li class="city-item">敦煌</li>
                <li class="city-item">大同</li>
                <li class="city-item">德宏</li>
                <li class="city-item">东营</li>
                <li class="city-item">丹东</li>
                <li class="city-item">迪庆</li>
                <li class="city-item">达县</li>
                <li class="city-item">稻城</li>
                <li class="city-item">大理</li>
                <li class="city-item">达州</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="E" class="city-group-title">E</div>
            <ul class="sub-city-box">
                <li class="city-item">鄂尔多斯</li>
                <li class="city-item">恩施</li>
                <li class="city-item">二连浩特</li>
                <li class="city-item">额济纳旗 </li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="F" class="city-group-title">F</div>
            <ul class="sub-city-box">
                <li class="city-item">福州</li>
                <li class="city-item">阜阳</li>
                <li class="city-item">佛山</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="G" class="city-group-title">G</div>
            <ul class="sub-city-box">
                <li class="city-item">广州</li>
                <li class="city-item">贵阳</li>
                <li class="city-item">桂林</li>
                <li class="city-item">赣州</li>
                <li class="city-item">广元</li>
                <li class="city-item">格尔木</li>
                <li class="city-item">固原</li>
                <li class="city-item">光化</li>
                <li class="city-item">高雄</li>
                <li class="city-item">广汉</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="H" class="city-group-title">H</div>
            <ul class="sub-city-box">
                <li class="city-item">杭州</li>
                <li class="city-item">哈尔滨</li>
                <li class="city-item">海口</li>
                <li class="city-item">呼和浩特</li>
                <li class="city-item">合肥</li>
                <li class="city-item">海拉尔</li>
                <li class="city-item">黄山</li>
                <li class="city-item">邯郸</li>
                <li class="city-item">淮安</li>
                <li class="city-item">怀化</li>
                <li class="city-item">黑河</li>
                <li class="city-item">汉中</li>
                <li class="city-item">河池</li>
                <li class="city-item">红原</li>
                <li class="city-item">和田</li>
                <li class="city-item">黄岩</li>
                <li class="city-item">哈密</li>
                <li class="city-item">花莲</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="J" class="city-group-title">J</div>
            <ul class="sub-city-box">
                <li class="city-item">济南</li>
                <li class="city-item">晋江</li>
                <li class="city-item">揭阳</li>
                <li class="city-item">九寨沟</li>
                <li class="city-item">佳木斯</li>
                <li class="city-item">嘉峪关</li>
                <li class="city-item">景德镇</li>
                <li class="city-item">井冈山</li>
                <li class="city-item">鸡西</li>
                <li class="city-item">锦州</li>
                <li class="city-item">济宁</li>
                <li class="city-item">加格达奇</li>
                <li class="city-item">金昌</li>
                <li class="city-item">九江</li>
                <li class="city-item">九华山</li>
                <li class="city-item">景洪</li>
                <li class="city-item">金门</li>
                <li class="city-item">嘉义</li>
                <li class="city-item">吉林</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="K" class="city-group-title">K</div>
            <ul class="sub-city-box">
                <li class="city-item">昆明</li>
                <li class="city-item">库尔勒</li>
                <li class="city-item">库车</li>
                <li class="city-item">喀纳斯</li>
                <li class="city-item">克拉玛依</li>
                <li class="city-item">康定</li>
                <li class="city-item">凯里</li>
                <li class="city-item">喀什</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="L" class="city-group-title">L</div>
            <ul class="sub-city-box">
                <li class="city-item">兰州</li>
                <li class="city-item">丽江</li>
                <li class="city-item">拉萨</li>
                <li class="city-item">临沂</li>
                <li class="city-item">连云港</li>
                <li class="city-item">柳州</li>
                <li class="city-item">洛阳</li>
                <li class="city-item">泸州</li>
                <li class="city-item">吕梁</li>
                <li class="city-item">林芝</li>
                <li class="city-item">临沧</li>
                <li class="city-item">黎平</li>
                <li class="city-item">龙岩</li>
                <li class="city-item">荔波</li>
                <li class="city-item">梁平</li>
                <li class="city-item">林西</li>
                <li class="city-item">连城</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="M" class="city-group-title">M</div>
            <ul class="sub-city-box">
                <li class="city-item">绵阳</li>
                <li class="city-item">牡丹江</li>
                <li class="city-item">满洲里</li>
                <li class="city-item">梅州</li>
                <li class="city-item">漠河</li>
                <li class="city-item">芒市</li>
                <li class="city-item">梅县</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="N" class="city-group-title">N</div>
            <ul class="sub-city-box">
                <li class="city-item">南京</li>
                <li class="city-item">南宁</li>
                <li class="city-item">南昌</li>
                <li class="city-item">宁波</li>
                <li class="city-item">南通</li>
                <li class="city-item">南阳</li>
                <li class="city-item">南充</li>
                <li class="city-item">那拉提</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="P" class="city-group-title">P</div>
            <ul class="sub-city-box">
                <li class="city-item">攀枝花</li>
                <li class="city-item">普洱</li>
                <li class="city-item">普陀山</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="Q" class="city-group-title">Q</div>
            <ul class="sub-city-box">
                <li class="city-item">青岛</li>
                <li class="city-item">齐齐哈尔</li>
                <li class="city-item">秦皇岛</li>
                <li class="city-item">衢州</li>
                <li class="city-item">庆阳</li>
                <li class="city-item">黔江</li>
                <li class="city-item">泉州</li>
                <li class="city-item">且末</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="R" class="city-group-title">R</div>
            <ul class="sub-city-box">
                <li class="city-item">日喀则</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="S" class="city-group-title">S</div>
            <ul class="sub-city-box">
                <li class="city-item">上海</li>
                <li class="city-item">深圳</li>
                <li class="city-item">三亚</li>
                <li class="city-item">沈阳</li>
                <li class="city-item">石家庄</li>
                <li class="city-item">神农架</li>
                <li class="city-item">汕头</li>
                <li class="city-item">沙市</li>
                <li class="city-item">山海关</li>
                <li class="city-item">思茅</li>
                <li class="city-item">石狮</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="T" class="city-group-title">T</div>
            <ul class="sub-city-box">
                <li class="city-item">天津</li>
                <li class="city-item">太原</li>
                <li class="city-item">台州</li>
                <li class="city-item">通辽</li>
                <li class="city-item">腾冲</li>
                <li class="city-item">铜仁</li>
                <li class="city-item">唐山</li>
                <li class="city-item">通化</li>
                <li class="city-item">塔城</li>
                <li class="city-item">天水</li>
                <li class="city-item">吐鲁番</li>
                <li class="city-item">台北</li>
                <li class="city-item">台东</li>
                <li class="city-item">台中</li>
                <li class="city-item">台南</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="W" class="city-group-title">W</div>
            <ul class="sub-city-box">
                <li class="city-item">武汉</li>
                <li class="city-item">乌鲁木齐</li>
                <li class="city-item">温州</li>
                <li class="city-item">无锡</li>
                <li class="city-item">乌海</li>
                <li class="city-item">武夷山</li>
                <li class="city-item">潍坊</li>
                <li class="city-item">乌兰浩特</li>
                <li class="city-item">万州</li>
                <li class="city-item">威海</li>
                <li class="city-item">梧州</li>
                <li class="city-item">文山</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="X" class="city-group-title">X</div>
            <ul class="sub-city-box">
                <li class="city-item">西安</li>
                <li class="city-item">厦门</li>
                <li class="city-item">西宁</li>
                <li class="city-item">西双版纳</li>
                <li class="city-item">徐州</li>
                <li class="city-item">襄阳</li>
                <li class="city-item">锡林浩特</li>
                <li class="city-item">西昌</li>
                <li class="city-item">兴义</li>
                <li class="city-item">夏河</li>
                <li class="city-item">香格里拉</li>
                <li class="city-item">襄樊</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="Y" class="city-group-title">Y</div>
            <ul class="sub-city-box">
                <li class="city-item">烟台</li>
                <li class="city-item">银川</li>
                <li class="city-item">义乌</li>
                <li class="city-item">宜昌</li>
                <li class="city-item">榆林</li>
                <li class="city-item">延吉</li>
                <li class="city-item">扬州</li>
                <li class="city-item">运城</li>
                <li class="city-item">宜宾</li>
                <li class="city-item">盐城</li>
                <li class="city-item">延安</li>
                <li class="city-item">宜春</li>
                <li class="city-item">伊春</li>
                <li class="city-item">永州</li>
                <li class="city-item">伊宁</li>
                <li class="city-item">玉树</li>
                <li class="city-item">伊犁</li>
            </ul>
        </li>
        <li id="inlandnothotcity" class="main-item cityli nothotcity">
            <div data-key="Z" class="city-group-title">Z</div>
            <ul class="sub-city-box">
                <li class="city-item">郑州</li>
                <li class="city-item">珠海</li>
                <li class="city-item">湛江</li>
                <li class="city-item">张家界</li>
                <li class="city-item">遵义</li>
                <li class="city-item">舟山</li>
                <li class="city-item">张家口</li>
                <li class="city-item">昭通</li>
                <li class="city-item">张掖</li>
                <li class="city-item">中卫</li>
                <li class="city-item">芷江</li>
                <li class="city-item">中山</li>
            </ul>
        </li>
        </ul>
        </div>
        </section>
 </div>
<?php $this->load->module('mobile/index/footer', $common);?>
<script>
    <?php if(isset($_GET['preview'])||isset($_GET['touchtpl'])):?>
     var url  = '<?php echo site_url('mobile/flight/index?');?>&' ;
     <?php else:?>
     var url  = '<?php echo site_url('mobile/flight/index?');?>' ;
     <?php endif;?>


     var ecity = '<?php echo @$_GET['ecity'];?>';
     var scity = '<?php echo @$_GET['scity'];?>';
    <?php if(isset($_GET['isScity'])&&$_GET['isScity']):?>
     var isScity =  1 ;
    <?php else:?>
    var isScity =  0 ;
    <?php endif;?>
    <?php if(isset($_GET['isEcity'])&&$_GET['isEcity']):?>
    var isEcity =  1 ;
    <?php else:?>
    var isEcity =  0 ;
    <?php endif;?>
    $(function(){
          $('.sub-city-box').find('li').click(function(){
              var data = $(this).text();
              if(isScity)
              {
                  if(ecity.length>0){
                      var new_url =  url+'ecity='+ecity;
                  }else{
                      var new_url =  url+'refer=1'
                  }
                  var new_url =  new_url+'&scity='+data;
              }
              if(isEcity)
              {
                  if(scity.length>0){
                      var new_url =  url+'scity='+scity;
                  }else{
                      var new_url =  url+'refer=1'
                  }
                  var new_url =  new_url+'&ecity='+data;
              }
              window.location.href = new_url ;
          })
    })
</script>